package com.itqf.springdubboorderprovider.com.itqf.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itqf.entity.Order;
import com.itqf.service.OrderService;

import java.math.BigDecimal;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * 作者：李宏飞
 * 项目名： spring-dubbp
 * 时间：2019/12/12  10:43
 * 描述:
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Override
    public List<Order> findOrderByid(Integer id) {
        Order order = new Order();

        order.setOrderId(1234);
        order.setTotalPrice(new BigDecimal(101.1));
        order.setCreated(new Date());
        order.setUpdated(new Date());

        return Collections.singletonList(order);
    }
}
